@extends('admin.common.zhyframe')

@section('head')
<link href="{{asset('js/plugins/bootstrap-table/bootstrap-table.min.css')}}" rel="stylesheet">
@endsection

@section('content')
<style>
table thead tr th{
	text-align:center;
}
table tbody tr td{
	text-align:center;
}
</style>
<body class="font16">
<div class="wrapper animated fadeInRight">
	<div class="ibox float-e-margins">
		<div class="ibox-title">
			<h2>留言列表</h2>
		</div>
		<div class="ibox-content">
			<div class="row row-lg">
                <div class="col-sm-12 mb-25">
                    <form class="form-inline" role="form" id="searchForm" action="" method="get">
                        <div class="form-group WW15">
                            客户姓名：
                            <input type="text" class="form-control WW50" name="user_name" placeholder="请输入名称" value="{{@$searchdata['user_name']}}">
                        </div>
                        <div class="form-group WW15">
                            起始时间：
                            <input type="date" class="form-control WW50" name="starttime" value="{{@$searchdata['starttime']}}">
                        </div>
                        <div class="form-group WW15">
                            结束时间：
                            <input type="date" class="form-control WW50" name="endtime" value="{{@$searchdata['endtime']}}">
                        </div>
                        <div class="form-group WW15">
                            联系方式：
                            <input type="text" class="form-control WW60" name="user_phone" placeholder="请输入联系方式" value="{{@$searchdata['user_phone']}}">
                        </div>
                        <div class="form-group WW15">
                            客户邮箱：
                            <input type="text" class="form-control WW50" name="user_email" placeholder="请输入邮箱" value="{{@$searchdata['user_email']}}">
                        </div>
                        <div class="form-group WW5">
                            <button type="submit" class="btn btn-white W65 mt-5">搜  索</button>
                        </div>
                    </form>
                </div>
				<div class="col-sm-12">
					<!-- Example Events -->
					<div class="example-wrap">
						<div class="btn-group hidden-xs" id="tableEventsToolbar" role="group">
							<button type="button" class="btn btn-outline btn-default" onclick="layListMultiDel('/admin/feedback/destroy')">
								<i class="fa fa-trash-o mr-5" aria-hidden="true"></i>批量删除
							</button>
						</div>
						<table id="tableEvents" data-height="auto" data-mobile-responsive="true">
							<thead>
								<tr>
									<th data-field="checkbox">
										<label>
											<input name="checkboxAll" type="checkbox" class="input-checkbox" onclick="checkChose()"><i>✓</i>
										</label>
									</th>
									<th data-field="user_name" data-sortable="true">客户姓名</th>
									<th data-field="user_phone">联系方式</th>
									<th data-field="user_email">客户邮箱</th>
									<th data-field="user_content">留言内容</th>
									<th data-field="add_time_format" data-sortable="true">提交时间</th>
									<th data-field="adminremark">后台标注</th>
									<th data-field="operation">操作</th>
								</tr>
							</thead>
						</table>
					</div>
					<!-- End Example Events -->
				</div>
			</div>
		</div>
    </div>
</div>
<form id="delForm">
	<input type="hidden" name="_method" value="delete">
	<input type="hidden" name="id" id="delid">
</form>
@endsection

@section('footer')
<!-- Bootstrap table -->
<script src="{{asset('js/plugins/bootstrap-table/bootstrap-table.min.js')}}"></script>
<script src="{{asset('js/plugins/bootstrap-table/bootstrap-table-zh-CN.min.js')}}"></script>
<script src="{{asset('js/public.js')}}"></script>
<script>
$(function () {
	var url = '/admin/feedback/datatablelist';
	var search_form = $('#searchForm').serializeArray();
	bootstrapList(url,search_form,25);
});
</script>
@endsection